package cn.hxth.cloud.provider.updater;

/*
@Component
public class OutPutSteelsUpdaterFactory extends AbstractSteelsUpdaterFactory<SteelsOutputOrder> {


    public OutPutSteelsUpdaterFactory(DateProvider dateProvider, SteelsMapper steelsMapper) {
        super(dateProvider, steelsMapper);
    }




    @Override
    protected List<Long> getSteelsIds(SteelsOutputOrder parameter) throws Exception {
        List<SteelsOutputOrderItem> steelsOutputOrderItems = parameter.getSteelsOutputOrderItems();
        List<Long> ids = new ArrayList<>(steelsOutputOrderItems.size()) ;
        for(SteelsOutputOrderItem steelsOutputOrderItem:steelsOutputOrderItems){
            Long id = steelsOutputOrderItem.getId() ;
            ids.add(id) ;

        }
        return ids;
    }

    @Override
    protected SteelsUpdater createSteelsUpdater(List<Steels> steels, SteelsOutputOrder parameter) throws Exception {
        Map<Long,SteelsOutputOrderItem> map = new HashMap<>() ;
        for(SteelsOutputOrderItem steelsOutputOrderItem:parameter.getSteelsOutputOrderItems()){
            map.put(steelsOutputOrderItem.getId(),steelsOutputOrderItem) ;
        }
        return new OutPutSteelsUpdater(steels,steelsMapper,dateProvider,map) ;
    }
}
*/
